package cn.tedu.department.service;

import cn.tedu.department.pojo.dto.DepartmentDTO;
import cn.tedu.department.pojo.vo.DepartmentVO;

import java.util.List;
import java.util.Map;

public interface DepartmentService {
    /**
     * 查询所有部门
     *
     * @param departmentDTO
     * @return
     */
    List<DepartmentVO> selectAll(DepartmentDTO departmentDTO);

    /**
     * 获取树形结构
     * @param departmentDTO
     * @return
     */
    Map<String, Object> getTree(DepartmentDTO departmentDTO);

    /**
     * 修改
     * @param departmentDTO
     */
    void update(DepartmentDTO departmentDTO);

    /**
     * 更新状态
     * @param departmentDTO
     */
    void changeStatus(DepartmentDTO departmentDTO);

    /**
     * 新增
     * @param departmentDTO
     */
    void insert(DepartmentDTO departmentDTO);

    /**
     * 删除
     * @param departmentDTO
     */
    void delete(DepartmentDTO departmentDTO);
}
